package org.jeecg.vo.basedata;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.enums.base.BaseCustomerCategoryEnum;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 住户信息  -  导入
 * @Author: jeecg-boot
 * @Date:   2019-07-03
 * @Version: V1.0
 */
@Data
public class BaseCustomerExcel {

	@Excel(name = "项目名称", width = 15)
	private String projectName;
	private String projectId;
	private String tenantId;

	@Excel(name = "楼宇名称", width = 15)
	private String floorName;
	private String floorId;

  	@Excel(name = "房间名称", width = 15)
	private String roomName;

	@Excel(name = "住户类型", width = 15)
	private String customerCategory;

  	@Excel(name = "住户姓名", width = 15)
	private String name;

  	@Excel(name = "住户电话", width = 15)
	private String mobile;

  	@Excel(name = "联系人电话", width = 15)
	private String telphone;

  	@Excel(name = "联系人", width = 15)
	private String contactus;

  	@Excel(name = "证件号码", width = 15)
	private String idcard;

	@Excel(name = "初始收费时间", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "初始收费时间")
  	private Date chargeTime;

	public Integer getCustomerCategory(){
		return BaseCustomerCategoryEnum.getValue(this.customerCategory);
	}

}
